package com.dog.basics.bean.dto.admin.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 系统角色表
 * </p>
 *
 * @author guoy
 * @since 2020-03-19
 */
@Data

public class SysRoleEditDto implements Serializable {

    @NotNull(message = "roleId不能为空")
    @ApiModelProperty(value = "角色ID", dataType = "Long", required = true)
    private Long roleId;
    /**
     * 角色名称
     */
    @NotBlank(message = "角色名称不能为空")
    @Size(max = 20, message = "角色名称最大长度为20")
    @ApiModelProperty(value = "角色名称", dataType = "String", required = true)
    private String roleName;

    /**
     * 角色CODE
     */
    @NotBlank(message = "角色CODE不能为空")
    @Size(max = 20, message = "角色CODE最大长度为20")
    @ApiModelProperty(value = "角色CODE", dataType = "String", required = true)
    private String roleCode;

    /**
     * 角色说明
     */

    @Size(max = 500, message = "角色说明长度为500")
    @ApiModelProperty(value = "角色说明", dataType = "String", required = false)
    private String roleDesc;

    /**
     * 数据权限类型
     */
    @Size(max = 500, message = "数据权限类型长度为500")
    @ApiModelProperty(value = "数据权限类型", dataType = "String", required = false)
    private String dsType;

    /**
     * 数据权限范围
     */
    @Size(max = 500, message = "数据权限范围长度为500")
    @ApiModelProperty(value = "数据权限范围", dataType = "String", required = false)
    private String dsScope;
    /**
     * 菜单ID
     */
    @ApiModelProperty(value = "菜单ID", dataType = "List<Long>", required = false)
    private List<Long> menuIdList;


}
